# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-characters
pkgver=42.0
pkgrel=0
pkgdesc="A simple utility application to find and insert unusual characters"
url="https://wiki.gnome.org/Design/Apps/CharacterMap"
# s390x and riscv64 blocked by gjs
arch="all !s390x !riscv64"
license="BSD-3-Clause AND GPL-2.0-or-later"
depends="gjs gtk4.0 libadwaita"
makedepends="
	gjs-dev
	glib-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	pango-dev
	"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-characters/${pkgver%.*}/gnome-characters-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
ba6fa07ff90ede1cba0e541f0c4bda63f1d6122c18af44dafa3bfb0fa6f9580a3cd8580d0a12510e2eb95afedb4b0f350accc37eee85c3aa4422a66732dff404  gnome-characters-42.0.tar.xz
"
